/**
 * 手机端路由配置
 * <p>
 * 2025.01.11 geng.chen 拆分路由
 * <p>
 * 注释掉的代码, 我没有删
 * <p>
 * 没有版本管理, 没有文档记录, 唯有前端的路由历史, 见证了需求变更
 */
export const mobileRoutes = [
  // 手机入口页(页内按角色自动导航)
  {
    path: '/mobile',
    component: () => import('@/views/mobile/index'),
    hidden: true,
  },
  // 中台-社群
  {
    path: '/mobile/midsq',
    component: () => import('@/views/mobile/midsq/index'),
    meta: {
      roles: ['11', '21'],
    },
    children: [
      {
        path: '/',
        component: () => import('@/views/mobile/midsq/consumer/index'),
      },
      {
        path: 'consumer',
        component: () => import('@/views/mobile/midsq/consumer/index'),
      },
      {
        path: 'keeper',
        component: () => import('@/views/mobile/midsq/keeper/index'),
      },
    ],
    hidden: true,
  },
  // 中台-数据
  {
    path: '/mobile/midsj',
    component: () => import('@/views/mobile/midsj/index'),
    meta: {
      roles: ['22'],
    },
    children: [
      {
        path: '/',
        component: () => import('@/views/mobile/midsj/score/index'),
      },
      {
        path: 'score',
        component: () => import('@/views/mobile/midsj/score/index'),
      },
      {
        path: 'analysis',
        component: () => import('@/views/mobile/midsj/analysis/index'),
      },
    ],
    hidden: true,
  },
  // 中台-运营
  {
    path: '/mobile/midyy',
    component: () => import('@/views/mobile/midyy/index'),
    meta: {
      roles: ['13', '23'],
    },
    children: [
      {
        path: '/',
        component: () => import('@/views/mobile/midyy/director/index'),
      },
      {
        path: 'director',
        component: () => import('@/views/mobile/midyy/director/index'),
      },
      {
        path: 'replay',
        component: () => import('@/views/mobile/midyy/replay/index'),
      },
    ],
    hidden: true,
  },
  // 中台-财务
  {
    path: '/mobile/midcw',
    component: () => import('@/views/mobile/midcw/index'),
    meta: {
      roles: ['24'],
    },
    children: [
      {
        path: '/',
        component: () => import('@/views/mobile/midcw/approve/index'),
      },
      {
        path: 'approve',
        component: () => import('@/views/mobile/midcw/approve/index'),
      },
    ],
    hidden: true,
  },
  // 门店-店长
  {
    path: '/mobile/shopkeeper',
    component: () => import('@/views/mobile/shopkeeper/index'),
    meta: {
      roles: ['201'],
    },
    children: [
      {
        path: '/',
        component: () => import('@/views/mobile/shopkeeper/money/index'),
      },
      {
        path: 'money',
        component: () => import('@/views/mobile/shopkeeper/money/index'),
      },
      {
        path: 'cost',
        component: () => import('@/views/mobile/shopkeeper/cost/index'),
      },
      {
        path: 'approve',
        component: () => import('@/views/mobile/shopkeeper/approve/index'),
      },
    ],
    hidden: true,
  },
  // 门店-院长
  {
    path: '/mobile/director',
    component: () => import('@/views/mobile/director/index'),
    meta: {
      roles: ['202', '213'],
    },
    children: [
      {
        path: '/',
        component: () => import('@/views/mobile/director/alarm/index'),
      },
      {
        path: 'input-money',
        component: () => import('@/views/mobile/director/input-money/index'),
      },
      {
        path: 'alarm',
        component: () => import('@/views/mobile/director/alarm/index'),
      },
      {
        path: 'input-cost',
        component: () => import('@/views/mobile/director/input-cost/index'),
      },
      {
        path: 'plan',
        component: () => import('@/views/mobile/director/plan/index'),
      },
      {
        path: 'deploy',
        component: () => import('@/views/mobile/director/deploy/index'),
      },
    ],
    hidden: true,
  },
  // 门店-管家
  {
    path: '/mobile/keeper',
    component: () => import('@/views/mobile/keeper/index'),
    meta: {
      roles: ['203', '213', '202'],
    },
    children: [
      {
        path: '/',
        component: () => import('@/views/mobile/keeper/consumer/index'),
      },
      {
        path: 'consumer',
        component: () => import('@/views/mobile/keeper/consumer/index'),
      },
      {
        path: 'plan',
        component: () => import('@/views/mobile/keeper/plan/index'),
      },
      {
        path: 'money',
        component: () => import('@/views/mobile/keeper/money/index'),
      },
    ],
    hidden: true,
  },
  // 门店-前台
  {
    path: '/mobile/reception',
    component: () => import('@/views/mobile/reception/index'),
    meta: {
      roles: ['204'],
    },
    children: [
      {
        path: '/',
        component: () => import('@/views/mobile/reception/consumer/index'),
      },
      {
        path: 'consumer',
        component: () => import('@/views/mobile/reception/consumer/index'),
      },
    ],
    hidden: true,
  },
  // 门店-操作师
  {
    path: '/mobile/operator',
    component: () => import('@/views/mobile/operator/index'),
    meta: {
      roles: ['205', '206', '207', '208'],
    },
    // children: [
    //   {
    //     path: '/',
    //     component: () => import('@/views/mobile/reception/consumer/index')
    //   },
    //   {
    //     path: 'consumer',
    //     component: () => import('@/views/mobile/reception/consumer/index')
    //   }
    // ],
    hidden: true,
  },
  // {
  //   path: '/mobile',
  //   component: () => import('@/views/mobile/index'),
  //   meta: {
  //     roles: ['0', '11', '111']
  //   },
  //   children: [
  //     {
  //       path: '/',
  //       component: () => import('@/views/mobile/boss/index')
  //     },
  //     {
  //       path: 'boss',
  //       component: () => import('@/views/mobile/boss/index')
  //     },
  //     {
  //       path: 'clerk/:clerkid',
  //       component: () => import('@/views/mobile/clerk/index'),
  //       props: route => ({ query: route.query.ccode })
  //     },
  //     {
  //       path: 'salon',
  //       component: () => import('@/views/mobile/salon/index')
  //     }
  //   ],
  //   hidden: true
  // },
];
